package com.xio.cloud.loadBalanced;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

public interface IMyRoundRobinRule {
    
    /**
     * 通过serviceInstanceList集合轮询出当前应该请求哪个service
     * @param serviceInstanceList
     * @return: org.springframework.cloud.client.ServiceInstance
     * @author: xio
     * @time: 2020/9/28 18:41
     */
    ServiceInstance instances(List<ServiceInstance> serviceInstanceList);

}
